# locals()

a = 1

names = locals()
#      本地变量
# 《 class  'dict'》
print(names['a'])